

let obj = {
    name:'王昭君',
    age:20,
    phone:'1337...',
    arr:[1,2,3]
}

let values = Object.values(obj)
console.log(values) // [ '王昭君', 20, '1337...', [ 1, 2, 3 ] ]




//例子：求学生成绩最高分
let student = {
    lessons:{
        js:87,
        java:92,
        node:95,
        linux:88,
        html:100,
        css:96
    }
}


let max =Math.max.apply(null, Object.values(student.lessons))
console.log(max)


max =Math.max(...Object.values(student.lessons))
console.log(max)
